package com.ww.prodiver.controller;

import com.ww.prodiver.kafka.KafkaProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
@RestController
public class KafkaController {
    @Autowired
    KafkaProducer producer;

    @GetMapping("/sendMessage")
    public void send() {
        producer.sendMessage();
    }
}
